class CreateNodeconfs < ActiveRecord::Migration
  def self.up
    create_table :nodeconfs do |t|
      t.column "node_id",    :integer
      t.column "update_svr", :string
      t.column "updates", :boolean
      t.column "upgrades", :boolean
      t.column "force_upgrade", :boolean
      t.column "firmware_path", :string
      t.column "traffic_control", :boolean
      t.column "throttle_up", :integer
      t.column "throttle_down", :integer
      t.column "block_lan", :boolean, :default => true
    end
  end

  def self.down
    drop_table :nodeconfs
  end
end
